package tedu.week04.day02_thread.lesson4;

/**
 * <pre>
 *      生产者与消费者--消费者类.
 *
 * </pre>
 *
 * @author : resty
 * @date : 2019年07月09日    14时
 **/
public class Consumer implements Runnable {
    private Info info;

    public Consumer(Info info) {
        this.info = info;
    }
    @Override
    public void run() {
        for (int i = 0; i < 30; i++) {
            this.info.get();
        }
    }
}
